package yf.mall.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;


import java.math.BigDecimal;

import yf.mall.entity.KolOrderStatEntity;
import yf.mall.vo.KolOrderStatVo;

                                                    
/**
 * 统计信息表实体
 * 表名 kol_order_stat
 *
 *
 *
 * @date Sun Jul 30 10:43:48 CST 2023
 */
@Data
public class KolOrderStatUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //抖音openid
            @ExcelProperty("抖音openid")
            private String openId;
        
                        //有效销售额
            @ExcelProperty("有效销售额")
            private BigDecimal validPayAmount;
        
                        //有效订单数
            @ExcelProperty("有效订单数")
            private BigDecimal validOrderCount;
        
                        //有效佣金
            @ExcelProperty("有效佣金")
            private BigDecimal validEstimatedCommission;
        
                        //全部销售额
            @ExcelProperty("全部销售额")
            private BigDecimal totalPayAmount;
        
                        //全部订单数
            @ExcelProperty("全部订单数")
            private BigDecimal orderCount;
        
                        //全部佣金
            @ExcelProperty("全部佣金")
            private BigDecimal estimatedCommission;
        
                        //退款销售额
            @ExcelProperty("退款销售额")
            private BigDecimal refundPayAmount;
        
                        //退款订单数
            @ExcelProperty("退款订单数")
            private BigDecimal refundOrderCount;
        
                        //退款佣金
            @ExcelProperty("退款佣金")
            private BigDecimal refundEstimatedCommission;
        
                        //退款率
            @ExcelProperty("退款率")
            private BigDecimal refundRatio;
        
                        //统计日期
            @ExcelProperty("统计日期")
            private Integer date;
        
    
    public KolOrderStatUp() {

    }

    public KolOrderStatVo toVo() {

        KolOrderStatEntity entity = new KolOrderStatEntity();
            KolOrderStatVo vo = new KolOrderStatVo(entity);
                                    entity.setId(id);
            
                                    entity.setOpenId(openId);
            
                                    entity.setValidPayAmount(validPayAmount);
            
                                    entity.setValidOrderCount(validOrderCount);
            
                                    entity.setValidEstimatedCommission(validEstimatedCommission);
            
                                    entity.setTotalPayAmount(totalPayAmount);
            
                                    entity.setOrderCount(orderCount);
            
                                    entity.setEstimatedCommission(estimatedCommission);
            
                                    entity.setRefundPayAmount(refundPayAmount);
            
                                    entity.setRefundOrderCount(refundOrderCount);
            
                                    entity.setRefundEstimatedCommission(refundEstimatedCommission);
            
                                    entity.setRefundRatio(refundRatio);
            
                                    entity.setDate(date);
            
        
        return  vo;
    }



}
